<?php
namespace App\Modules\File;
use App\Modules\AdapterApi;
use App\Services\File\FileIndex;
/**
 * Created by PhpStorm.
 * User: 97606
 * Date: 2018/6/12
 * Time: 10:10
 */
class File extends AdapterApi
{
    //上传文件
   /* public function upload()
    {
        $data = $this->receiveData(['type'=>'']);
        $sendData['query'] = json_encode([
            ["path"=>"manage/controller/Index/upload","param"=>$data]
        ]);
        return ApiBase::sendDataOne(config('proxy_queue_url'), $sendData);
    }*/

    public function fileDelete()
    {
         $data = pick_array($this->postData, ['id']);
         return FileIndex::File()->fileDelete($data);
    }

    public function fileGain()
    {
         $data = pick_array($this->postData, ['id']);
         return FileIndex::File()->fileGain($data);
    }

}